package com.example.dropoff;

import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.WindowManager;
import android.widget.ImageButton;
 
public class recipe extends ListActivity {
	private ImageButton imgbtn_r;
	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.recipe_list);
        addListenerOnButton();
    }
	
	protected void onResume(){
	    super.onResume();
	    	
	    getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);
	}
	 public void addListenerOnButton() {
		 imgbtn_r = (ImageButton) findViewById(R.id.plusbutton03);
		 imgbtn_r.setOnClickListener(new OnClickListener() {

	           @Override
	           public void onClick(View arg0) {

	               Intent i = new Intent
	                       (getApplicationContext(), popupactivity3.class);
	                   startActivity(i); 
	           }
	       });
	   }
}